﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Classic.Master" Inherits="ModelViewPage<PatientEditModel>" %>
<%@ Import Namespace="Revis.VClinicNet.UI.Internal.Mvc.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Nowy Pacjent
    </h2>
    <% Html.BeginForm(); %>
    <fieldset class="form">
        <%=Html.IfValidationFail() %>
        <h3>
            Dane osobowe:
        </h3>
        <div>
            <%=this.TextBox(p=>p.Personal.FirstName).Label("Imię:") %>
            <%=this.ValidationMessage(p=>p.Personal.FirstName) %>
        </div>
        <div>
            <%=this.TextBox(p=>p.Personal.Surname).Label("Nazwisko:") %>
            <%=this.ValidationMessage(p=>p.Personal.Surname) %>
        </div>
        <div>
            <%=this.TextBox(p=>p.Personal.Pesel).Label("Pesel:") %>
            <%=this.ValidationMessage(p=>p.Personal.Pesel) %>
        </div>
        <h3>
            Dane kontaktowe:
        </h3>
        <div>
            <%=this.TextBox(p=>p.Personal.Address.StreetName).Label("Ulica:") %>
            <%=this.ValidationMessage(p=>p.Personal.Address.StreetName) %>
        </div>
        <div>
            <%=this.TextBox(p=>p.Personal.Address.HomeNumber).Label("Nr domu:") %>
            <%=this.ValidationMessage(p=>p.Personal.Address.HomeNumber) %>
        </div>
        <div>
            <%=this.TextBox(p=>p.Personal.Address.City).Label("Miasto:") %>
            <%=this.ValidationMessage(p=>p.Personal.Address.City) %>
        </div>
        <div>
            <%=this.TextBox(p=>p.Personal.Address.Municipality).Label("Wojewódźtwo:") %>
            <%=this.ValidationMessage(p=>p.Personal.Address.StreetName) %>
        </div>
        <div>
            <%=this.TextBox(p=>p.Personal.Address.PostalCode).Label("Kod pocztowy:") %>
            <%=this.ValidationMessage(p=>p.Personal.Address.PostalCode) %>
        </div>
        <div>
            <%=this.TextBox(p=>p.Personal.Address.Telephone).Label("Telefon:") %>
            <%=this.ValidationMessage(p=>p.Personal.Address.Telephone) %>
        </div>
        <h3>
            Lekarz prowadzący:
        </h3>
        <div>
            <%=this.Select(p=>p.DoctorId)
                .Options(Model.Doctors)
                .Label("Lekarz:") %>
        </div>
        <div class="form-buttons">
            <%=this.SubmitButton("Ok") %>
            <%=this.ResetButton("Reset") %>
        </div>
    </fieldset>
    <% Html.EndForm(); %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
